package com.education.basic.ao.impl;



import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.education.basic.ao.BaseAo;
import com.education.basic.dao.DepartmentDao;
import com.education.basic.entity.Department;
import com.education.basic.entity.Teacher;
import com.education.basic.resource.Title;


@Service("teacherAo")
public class TeacherAoImpl extends BaseAo<Teacher>
{
	@Resource 
	private DepartmentDao departmentDao;
	
	public List<Title> add()
	{
		return Title.getTitles();
	}
	
	public List<Department> getAllDepartment()
	{
		return departmentDao.queryAll();
	}
	
	
	
	
	
	
	
}
